package day03;

public class OperDemo4 {
    public static void main(String[] args) {
       /*
        int a=4;
        a +=10;//a=(int)(a+10)
        System.out.println(a);//14
        a *=2;
        System.out.println(a);//14*2=28
        a /=4;
        System.out.println(a);//28/4=7


        //小面试题
        short s = 5;
         //s = s+10;报错，昨天的两则运算，需要强转，改为s=(short)(s+10)
         s +=10;//相当于s=(short)(s+10)

        */
         int a=20;
         a +=10;
        System.out.println(a);//30
        a /=5;
        System.out.println(a);//6
        a *=20;
        System.out.println(a);//120

    }
}
